package cn.thr.pethome.menu.mapper;

import cn.thr.pethome.base.mapper.BaseMapper;
import cn.thr.pethome.menu.domain.Menu;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author thr
 * @since 2023-02-01
 */@Repository
public interface MenuMapper extends BaseMapper<Menu> {
    List<Menu> findAllByparentId();

    List<Long> findMenuByRoleIds(List<Long> roles);
}
